﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Wikey.Entity.Page>" %>
  <div id="Comments">
            <h3>Comments</h3>
                <ul>
                    <% foreach (var comment in ViewData.Model.Comments)
                       {%>
                    <li>
                        <%= comment.Title%>
                        by
                        <%= comment.Identity.Name%>
                        at
                        <%= comment.Created.ToShortDateString()%>
                        <br />
                        <%= comment.Text%>
                    </li>
                    <% } %>
                </ul>
            </div>
        <div id="NewComment">
                <input type="hidden" value="<%= ViewData.Model.Id %>" id="PageId" />
                <input type="text" id="From" /><br />
                <textarea id="CommentText" rows="10" cols="20"></textarea>
                <br />
                <a href="javascript:SaveComment();">Save </a>
            </div>